package com.hexacta.hrs.repositories.exchange;

import java.util.Collection;
import java.util.List;

import org.vectrics.employee.Employee;

import com.hexacta.hrs.domain.exchange.Accrued;
import com.hexacta.hrs.domain.exchange.AccruedReferring;
import com.hexacta.hrs.domain.exchange.Confirmation;
import com.hexacta.hrs.repositories.RecordObjectRepository;

public interface AccruedRepository extends RecordObjectRepository<Accrued> {
	
	public void delete(Accrued entity);

	public Accrued forId(Long id);

	public Collection<Accrued> matching(Accrued criteria);

	public void save(Accrued entity);

	public Collection<Accrued> all();

	public void saveConfirmation(Confirmation confirmation);

	public List<Accrued> byProject(Long selectedProjectId);

	public List<AccruedReferring> byReferring(Employee partner, Integer year, Integer month);
}
